#ifndef  _BSP_WRITEDATA_H
#define _BSP_WRITEDATA_H

#define FLASH_SIZE 128

#if FLASH_SIZE<256
	#define SECTOR_SIZE 1024
#else
	#define SECTOR_SIZE 2048
#endif


#include "stm32f10x.h"

uint16_t FLASH_ReadHalfWord(uint32_t address);

uint32_t FLASH_ReadWord(uint32_t address);

void FLASH_ReadMoreData(uint32_t startAddress,uint16_t *readData,uint16_t countToRead);
void FLASH_WriteMoreData(uint32_t startAddress,uint16_t *writeData,uint16_t countToWrite);
#endif // _BSP_WRITEDATA_H
